package com.cby.android.base.accessibility

import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.cby.android.base.databinding.ActivityAccessibilityTestBinding
import com.cby.android.base.kotlin.start
import com.cby.android.base.web.WebActivity

/**
 * @description: AccessibilityTestActivity
 * @author: ChenBaoYang
 * @createDate: 2022/7/20 5:19 下午
 */
class AccessibilityTestActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val binding = ActivityAccessibilityTestBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.btnJumpToSettings.setOnClickListener {
            AccessibilitySettingUtils.jumpToAccessibilitySetting(this)
        }

        binding.btnTest.setOnClickListener {
            Toast.makeText(this, "I'm clicked", Toast.LENGTH_SHORT).show()
            start(WebActivity::class.java)
        }
    }
}